//
//  SimpleWebViewController2.m
//  POC
//
//  Created by Leelucifer on 15/8/13.
//
//

#import "SimpleWebViewController2.h"

@interface SimpleWebViewController2 ()

@end

@implementation SimpleWebViewController2

- (void)viewDidLoad {
    [super viewDidLoad];
    NSURLRequest *request =[NSURLRequest requestWithURL:[NSURL URLWithString:self.path]];
    CGRect rect=self.webView.frame;
    rect.size.height-=40;
    rect.origin.y+=40;
    self.webView.frame=rect;
    [self.webView loadRequest:request];
    self.webView.scalesPageToFit=YES;
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/
-(IBAction)_backButton:(id)sender
{
    [self dismissModalViewControllerAnimated:YES];
}

-(IBAction)_backImage:(id)sender
{
    [self dismissModalViewControllerAnimated:YES];
}

@end
